<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
    	<meta charset="utf-8">
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<meta content="width=device-width, minimum-scale=1,initial-scale=1, maximum-scale=1, user-scalable=1" id="viewport" name="viewport" />
		<meta content="yes" name="apple-mobile-web-app-capable" />
		<meta content="black" name="apple-mobile-web-app-status-bar-style" />
		<meta content="telephone=no" name="format-detection" />
		<link type="text/css" rel="stylesheet" href="../../template/css/com/com.css"/>
		<link type="text/css" rel="stylesheet" href="../../template/css/list/style.css"/>

		<script src="../../template/js/jquery.js"></script>
		<script src="../../template/js/com/com.js"></script>
		<script src="../../template/js/com/template.js"></script>
		<script src="../../resource/my.js"></script>
		<script src="../../script/api.js"></script>
    <link rel="stylesheet" href="../../resource/weuimin.css" />
		<!-- <link rel="stylesheet" href="../../resource/example.css" /> -->

    <link rel="stylesheet" href="../../resource/jinsuistyle.css" />
        <style type="text/css">

        	.weui-grid{width:50%;}
        	.weui-grid-main{text-align: center;}
        	.weui-grid__icon{width:70px;height:70px;}
        	.weui-grid-main1{
	        	height: 100px;
	        	line-height:100px;
	        	text-align: center;
	        	font-size:16px;
	        	font-weight:bold;
	        	color:#f7f6f6;
	        	background: #FFFFFF url('../../resource/images/main_bg.png') no-repeat 36px 0px ;
        	}
        	.weui-grid-label{
        	height: 100px;
        	line-height:100px;
        	font-size:16px;
        	font-weight:bold;
        	color:#FFFFA9;
        	text-align: center;
        	text-shadow: #171616 0 1px 0;
        	background: #FFFFFF url('../../resource/images/menu_bg.png') no-repeat 50% 0px ;}
        	.weui-grid-label{width:100px;margin: 0 auto;}
        	.isnew{background: #FFFFFF url('../../template/images/xp4.png') no-repeat 100% 0px ;}
        </style>
        <!-- <script language="javascript" src="http://count26.51yes.com/click.aspx?id=268836397&logo=12" charset="gb2312"></script> -->
        <script type="text/javascript">
          window.apiready = function() {
            /* 智能调整顶部导航栏 */
            // var header = $api.byId('js-com-header-area');
            var header = $api.byId('jsheader');
            if(api.systemType=='ios'){
        			$api.fixIos7Bar(header);
        		}
        		else{
        			$api.fixStatusBar(header);
        		}
        }
	        function menu(dm){
	        	SetCookie(dm,dm);
	        	//window.location.href="menu.html?dm="+ dm;
				api.openWin({
				    name: 'menu1',
				    url: './menu1.html',
				    pageParam: {
				        dm: dm
				    }
				});
	        }
			function setClick(e,dm){
				var note = e.parentNode.parentNode;
				if(getCookie(dm) != null){	//已经点击过的新品不要提示图标
					note.setAttribute("class","weui-grid");
 				}
			}
			
			function goHistory(){
			var jp = $api.getStorage("dl_phone");
				if(jp==null||jp==''||typeof(jp)==undefined||jp=='undefined'){
					api.alert({
						msg:'请登录'
			        },function(ret,err){
			        	api.openWin({
				            name: '跳转登陆',
				            url: '../login.html'
				            //url:'html/jskp/jskp.html'
			            });
			        });
				}else{
					api.openWin({
					    name: 'history.html',
					    url: 'history.html'
					    //url:'html/jskp/jskp.html'
					});
				}
			}
			
			function goBill(){
			var jp = $api.getStorage("dl_phone");
				if(jp==null||jp==''||typeof(jp)==undefined||jp=='undefined'){
					api.alert({
						msg:'请登录'
			        },function(ret,err){
			        	api.openWin({
				            name: '跳转登陆',
				            url: '../login.html'
				            //url:'html/jskp/jskp.html'
			            });
			        });
				}else{
					api.openWin({
					    name: 'bill.html',
					    url: 'bill.html'
					    //url:'html/jskp/jskp.html'
					});
				}
			}
	        </script>
    </head>
    <body>
      <div id="jsheader">
          <nav id="jsnav">
              <a id="jsleft" tapmode="" onclick="api.closeToWin({name: 'root'});">
                  <span>主页</span>
              </a>
              <div id="jsmiddle">
                  <strong id="jstitle">职场生活</strong>
              </div>
              <a id="jsright">
                <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
              </a>
          </nav>
      </div>
	<div class="com-content">

		<!-- <div class="com-header-area" id="js-com-header-area">
			<a href="" class="com-header-logo"
				style="width:100%;color:#FFFFFF;text-align:center;font-size:20px;">职场生活</a>
			<dfn></dfn>
			<div class="clear"></div>
		</div> -->
		<div class="com-content-area" id="js-com-content-area">
			<!--content-->
			<div class="page-role style-page">
				<div class="pxui-tab pxui-tab-nav pxui-tab-no-top">
					<a href="main.html" class="selected"><i></i>首 页<span></span></a>
					<a onclick="goHistory();"><li>历 史 订 单</li></a>
					<a onclick="goBill();"><li>购 物 筐</li></a>
				</div>
				<div style="min-height:300px;">
							<div style="background-color:#fff;">
								<div class="weui-grids" id="main_menu">

									<a class="weui-grid isnew"  href="javascript:void(0)" onclick="menu('1003')">
										<div class="weui-grid__icon">
 										<img src="../../resource/images/5001.png" onload="setClick(this,'5001')"/>
 										</div>
										<p class="weui-grid-main">日常生活&nbsp;</p>
									</a>
									<a class="weui-grid isnew" href="javascript:void(0)" onclick="menu('5003')">
										<div class="weui-grid__icon">
 										<img src="../../resource/images/5003.png" onload="setClick(this,'5003')"/>
 										</div>
										<p class="weui-grid-main">职场零食&nbsp;<!-- <span style="border:1px solid #ea8910;background-color:red;color:#FFF;padding:2px;border-radius: 15px;">11</span> --></p>
									</a>
									<a class="weui-grid isnew" href="javascript:void(0)" onclick="menu('5002')">
										<div class="weui-grid__icon">
 										<img src="../../resource/images/5002.png" onload="setClick(this,'5002')"/>
 										</div>
										<p class="weui-grid-main">茶、咖啡&nbsp;<!-- <span style="border:1px solid #ea8910;background-color:red;color:#FFF;padding:2px;border-radius: 15px;">11</span> --></p>
									</a>
							</div>
							</div>
				</div>
			</div>
		</div>
		<!-- 公共底部，必须引用 -->
		<div class="weui-tabbar">
			<div class="com-footer-area footer" id="js-com-footer" style="width:100%;">
				<div class="com-footer">
					 © 2012-2018 四川航天金穗高技术有限公司 <br /> All Rights Reserved
					联系电话：028-66778822
				</div>
			</div>
		</div>
	</div>
</body>

</html>
